package com.sky.vo;

import com.sky.dto.es.ProductModel;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class SearchProductResponse implements Serializable {

    //商品信息
    private List<ProductModel> products;

    //当前页码
    private Integer pageNum;

    //总记录数
    private Long total;

    //总页码
    private Long totalPage;

    // 品牌
    private List<BrandVo> brands;

    // 分类
    private List<CategoryVo> categories;

    // 属性
    private List<AttrVo> attrs;

    //分页导航
    private List<Integer> pageNavs;

    //导航
    private List<NavVo> navs;

    @Data
    public static class BrandVo implements Serializable {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CategoryVo implements Serializable {
        private Long categoryId;
        private String categoryName;
    }

    @Data
    public static class AttrVo implements Serializable {
        private Long attrId;
        private String attrName;
        private List<String> attrValues;
    }

    @Data
    public static class NavVo implements Serializable {
        private String navName;
        private String navValue;
        private String link;
    }
}
